﻿<script type='text/javascript'>
//<![CDATA[

imgr = new Array();
imgr[0] = "http://1.bp.blogspot.com/-xJBXLR81wuI/T_QncMxumoI/AAAAAAAAAbI/QbWAhz1wgW0/s1600/no_image.jpg";
showRandomImg = true;
numposts = 7; 

function helloximo01(json) {
	j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0; img  = new Array();
    if (numposts <= json.feed.entry.length) {maxpost = numposts;} else {maxpost=json.feed.entry.length;}		
    for (var i = 0; i < maxpost; i++) {var entry = json.feed.entry[i]; var posttitle = entry.title.$t; var pcm; var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'alternate') {posturl = entry.link[k].href; break;}}		
	for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {pcm = entry.link[k].title.split(" ")[0]; break;}}		
    if ("content" in entry) {var postcontent = entry.content.$t;} else if ("summary" in entry) {var postcontent = entry.summary.$t;} else var postcontent = ""; 	
	if(j>imgr.length-1) j=0; img[i] = imgr[j];	
	s = postcontent	; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);
	if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;
	if("media$thumbnail" in entry){var thumburl = entry.media$thumbnail.url;}
    else{ var thumburl = imgr[0]};

if (i==0) {var trtd = '<div class="hello-h-top"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+img[i]+'"/></a><h2><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></h2><div class="hello-h-top-info clear">'+removeHtmlTag(postcontent,160)+'...</div></div>'; document.write(trtd); }		  
if(i==1 || i==3 || i==5){var trtd = '<li class="hellotop"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl+'"/></a><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></li>';document.write(trtd); }	
if(i==2 || i==4 || i==6){var trtd = '<li class="hellotop bg"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl+'"/></a><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></li>';document.write(trtd); }	
}
document.write('');
}

function helloximo02(json) {
	j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0; img  = new Array();
    if (numposts <= json.feed.entry.length) {maxpost = numposts;} else {maxpost=json.feed.entry.length;}		
    for (var i = 0; i < maxpost; i++) {var entry = json.feed.entry[i]; var posttitle = entry.title.$t; var pcm; var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'alternate') {posturl = entry.link[k].href; break;}}		
	for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {pcm = entry.link[k].title.split(" ")[0]; break;}}		
    if ("content" in entry) {var postcontent = entry.content.$t;} else if ("summary" in entry) {var postcontent = entry.summary.$t;} else var postcontent = ""; 	
	if(j>imgr.length-1) j=0; img[i] = imgr[j];	
	s = postcontent	; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);
	if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;
	
if (i==0) {var trtd = '<div class="hello-h-left"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+img[i]+'"/></a><h2><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></h2><div class="hello-left-info clear">'+removeHtmlTag(postcontent,160)+'...</div></div>'; document.write(trtd); }	
if(i==1){var trtd = '<div class="hello-h-right"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+img[i]+'"/></a><h2><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></h2><div class="hello-left-info-li">'+removeHtmlTag(postcontent,300)+'...</div></div>'; document.write(trtd); }	
if(i>=2 && i <=6){var trtd = '<ul class="hello-h-right-li"><li><a href="'+posturl+'" title="'+removeHtmlTag(postcontent,200)+'">'+posttitle+'</a></li></ul>'; document.write(trtd); }			  
}
document.write('');
}

//]]>
</script>
</b:if>		
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1) { var s = strx.split("<"); for(var i=0;i<s.length;i++){ if(s[i].indexOf(">")!=-1){ s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length); } } strx = s.join("");}
chop = (chop < strx.length-1) ? chop : strx.length-2; while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++; strx = strx.substring(0,chop-1); return strx+'...';}
function createSummaryAndThumb(pID){ var div = document.getElementById(pID); var imgtag = ""; var img = div.getElementsByTagName("img"); 
if(img.length>=1) { imgtag = '<a><img class="label_thumb" src="'+img[0].src+'"/></a>';}
if(img.length<1) { imgtag = '<a><img class="label_thumb" src="http://1.bp.blogspot.com/-xJBXLR81wuI/T_QncMxumoI/AAAAAAAAAbI/QbWAhz1wgW0/s120/no_image.jpg"/></span>';}
var summary = imgtag + '<div class="price1">' + removeHtmlTag(div.innerHTML,150) + '</div>'; div.innerHTML = summary; }
function createSummaryAndThumb1(pID){ var div = document.getElementById(pID); var imgtag = ""; var img = div.getElementsByTagName("img"); 
if(img.length>=1) { imgtag = '<span style="float:left;padding:0px 10px 0 0px;margin:-38px 0 0 0"><img class="bimg" src="'+img[0].src+'" width="120px" height="85px" /></span>';}
if(img.length<1) { imgtag = '<span style="float:left;padding:0px 10px 0 0px;margin:-38px 0 0 0"><img class="bimg" src="http://1.bp.blogspot.com/-xJBXLR81wuI/T_QncMxumoI/AAAAAAAAAbI/QbWAhz1wgW0/s120/no_image.jpg" width="120px" height="85px" /></span>';}
var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,150) + '</div>'; div.innerHTML = summary; }
//]]>
</script>

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<style type='text/css'>
#related-posts {float:center;text-transform:none;padding:0;margin-top:10px;}
#related-posts h2{margin:0;background: url(http://2.bp.blogspot.com/-G9sN-9S0pFQ/TvB1Mde4NGI/AAAAAAAAAWo/WEMaH2u0JME/s1600/newslienquan.jpg) no-repeat scroll left 0 transparent;height: 16px;}
#related-posts a:hover {background-color:#d4eaf2} 
.lienquan {background: #ddd;height:57px;float: left;padding-left: 1px;width: 153px;margin:1px;overflow:hidden;line-height:1.4em}
.related-posts {margin-top:10px;padding: 0}
.related-posts ul {margin: 0;padding: 0}	
.related-posts ul li {background: url(http://2.bp.blogspot.com/-xqifPunAyFI/TaJlWbZEcGI/AAAAAAAABZ0/AWsX5sEj8Co/s1600/list.png) no-repeat top left;list-style-type: none;margin: 0 0 2px 5px;padding: 2px 0 0 18px;word-wrap: break-word}
div.beauty-bookmarks {height:54px;background:url(&#39;http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/sharingsexy.png&#39;) no-repeat left bottom;position:relative;width:540px;}
div.beauty-bookmarks span.beauty-rightside {width:17px;height:54px;background:url(&#39;http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/sharingsexy.png&#39;) no-repeat right bottom;position:absolute;right:-17px;}
div.beauty-bookmarks ul.socials {margin:0 !important;padding:0 !important;position:absolute;bottom:0;left:10px;}
div.beauty-bookmarks ul.socials li {display:inline-block !important;float:left !important;list-style-type:none !important;margin:0 !important;height:29px !important;width:48px !important;cursor:pointer !important;padding:0 !important;}
div.beauty-bookmarks ul.socials a {display:block !important;width:48px !important;height:29px !important;font-size:0 !important;color:transparent !important;}
.beauty-furl, .beauty-furl:hover, .beauty-digg, .beauty-digg:hover, .beauty-reddit, .beauty-reddit:hover, .beauty-stumble, .beauty-stumble:hover, .beauty-delicious, .beauty-delicious:hover, .beauty-yahoo, .beauty-yahoo:hover, .beauty-blinklist, .beauty-blinklist:hover, .beauty-technorati, .beauty-technorati:hover, .beauty-facebook, .beauty-facebook:hover, .beauty-twitter, .beauty-twitter:hover, .beauty-myspace, .beauty-myspace:hover, .beauty-mixx, .beauty-mixx:hover, .beauty-script-style, .beauty-script-style:hover, .beauty-designfloat, .beauty-designfloat:hover, .beauty-syndicate, .beauty-syndicate:hover, .beauty-email, .beauty-email:hover {background:url(&#39;http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/sexysprite.png&#39;) no-repeat !important;}
.beauty-furl {background-position:-300px top !important;}
.beauty-furl:hover {background-position:-300px bottom !important;}
.beauty-digg {background-position:-500px top !important;}
.beauty-digg:hover {background-position:-500px bottom !important;}
.beauty-reddit {background-position:-100px top !important;}
.beauty-reddit:hover {background-position:-100px bottom !important;}
.beauty-stumble {background-position:-50px top !important;}
.beauty-stumble:hover {background-position:-50px bottom !important;}
.beauty-delicious {background-position:left top !important;}
.beauty-delicious:hover {background-position:left bottom !important;}
.beauty-yahoo {background-position:-650px top !important;}
.beauty-yahoo:hover {background-position:-650px bottom !important;}
.beauty-blinklist {background-position:-600px top !important;}
.beauty-blinklist:hover {background-position:-600px bottom !important;}
.beauty-technorati {background-position:-700px top !important;}
.beauty-technorati:hover {background-position:-700px bottom !important;}
.beauty-myspace {background-position:-200px top !important;}
.beauty-myspace:hover {background-position:-200px bottom !important;}
.beauty-twitter {background-position:-350px top !important;}
.beauty-twitter:hover {background-position:-350px bottom !important;}
.beauty-facebook {background-position:-450px top !important;}
.beauty-facebook:hover {background-position:-450px bottom !important;}
.beauty-mixx {background-position:-250px top !important;}
.beauty-mixx:hover {background-position:-250px bottom !important;}
.beauty-script-style {background-position:-400px top !important;}
.beauty-script-style:hover {background-position:-400px bottom !important;}
.beauty-designfloat {background-position:-550px top !important;}
.beauty-designfloat:hover {background-position:-550px bottom !important;}
.beauty-syndicate {background-position:-150px top !important;}
.beauty-syndicate:hover {background-position:-150px bottom !important;}
.beauty-email {background-position:-753px top !important;}
.beauty-email:hover {background-position:-753px bottom !important;}
</style>
<script type='text/javascript'>
//<![CDATA[

function removeRelatedDuplicates_thumbs() {
var tmp = new Array(0);
var tmp2 = new Array(0);
var tmp3 = new Array(0);
for(var i = 0; i < relatedUrls.length; i++) {
if(!contains_thumbs(tmp, relatedUrls[i])) 
{
tmp.length += 1;
tmp[tmp.length - 1] = relatedUrls[i];
tmp2.length += 1;
tmp3.length += 1;
tmp2[tmp2.length - 1] = relatedTitles[i];
tmp3[tmp3.length - 1] = thumburl[i];
}
}
relatedTitles = tmp2;
relatedUrls = tmp;
thumburl=tmp3;
}
function contains_thumbs(a, e) {
for(var j = 0; j < a.length; j++) if (a[j]==e) return true;
return false;
}
function printRelatedLabels_thumbs(current) {
var splitbarcolor;
if(typeof(splittercolor) !== 'undefined') splitbarcolor=splittercolor; else splitbarcolor="#d4eaf2";
for(var i = 0; i < relatedUrls.length; i++)
{
if((relatedUrls[i]==current)||(!relatedTitles[i]))
{
relatedUrls.splice(i,1);
relatedTitles.splice(i,1);
thumburl.splice(i,1);
i--;
}
}
var r = Math.floor((relatedTitles.length - 1) * Math.random());
var i = 0;
if(relatedTitles.length>0) document.write('<h2>'+relatedpoststitle+'</h2>');
document.write('<div style="clear: both;"/>');
while (i < relatedTitles.length && i < 20 && i<maxresults) {
document.write('<div class="lienquan"><a style="text-decoration:none;padding:3px;float:left;"');
document.write(' href="' + relatedUrls[r] + '"><img style="width:60px;height:40px;border:1px solid #A8A8A8;padding:4px;background:#fff;margin-right:4px; float: left;" src="'+thumburl[r]+'" /><span style="color: #006633;font-family: Arial;font-size: 12px;font-weight: normal;text-align: justify">'+relatedTitles[r]+'</span></a></div>');
i++;
if (r < relatedTitles.length - 1) {
r++;
} else {
r = 0;
}
}
document.write('</div>');
relatedUrls.splice(0,relatedUrls.length);
thumburl.splice(0,thumburl.length);
relatedTitles.splice(0,relatedTitles.length);
}
//]]>
</script>
<script type='text/javascript'>
//<![CDATA[
var titles=new Array();var titlesNum=0;var urls=new Array();var time=new Array();function related_results_labels(c){for(var b=0;b<c.feed.entry.length;b++){var d=c.feed.entry[b];titles[titlesNum]=d.title.$t;for(var a=0;a<d.link.length;a++){if(d.link[a].rel=="alternate"){urls[titlesNum]=d.link[a].href;time[titlesNum]=d.published.$t;titlesNum++;break}}}}function removeRelatedDuplicates(){var b=new Array(0);var c=new Array(0);e=new Array(0);for(var a=0;a<urls.length;a++){if(!contains(b,urls[a])){b.length+=1;b[b.length-1]=urls[a];c.length+=1;c[c.length-1]=titles[a];e.length+=1;e[e.length-1]=time[a]}}titles=c;urls=b;time=e}function contains(b,d){for(var c=0;c<b.length;c++){if(b[c]==d){return true}}return false}function printRelatedLabels(a){for(var b=0;b<urls.length;b++){if(urls[b]==a){urls.splice(b,1);titles.splice(b,1);time.splice(b,1)}}var c=Math.floor((titles.length-1)*Math.random());var b=0;document.write("<ul class='lien-quan'>");if(titles.length==0){document.write("<li>Không có bài viết liên quan</li>")}else{while(b<titles.length&&b<20&&b<maxresults){document.write('<li><a href="'+urls[c]+'" title="'+time[c].substring(8,10)+"/"+time[c].substring(5,7)+"/"+time[c].substring(0,4)+'">'+titles[c]+"</a></li>");if(c<titles.length-1){c++}else{c=0}b++}}document.write("</ul>");urls.splice(0,urls.length);titles.splice(0,titles.length)};
//]]>
</script>
</b:if>

<script type='text/javascript'>
//<![CDATA[
var purl= location.href;
var fb_href = purl.substring(0,purl.indexOf(".html")+5);
var fbcm ='<div class="fb-comments" data-href="'+fb_href+'" data-num-posts="5" data-width="655"></div>';
//]]>
</script>

<script type='text/javascript'>
//<![CDATA[
  imgr=new Array();imgr[0]="http://1.bp.blogspot.com/-QjSndGbF0No/T-Nt3HgKsDI/AAAAAAAAG9o/cN6_Oy306rc/s1600/no-video.gif";showRandomImg=true;aBold=true;summaryPost=200;summaryTitle=20;numposts1=12;numposts2=4;function removeHtmlTag(strx,chop){var s=strx.split("<");for(var i=0;i<s.length;i++){if(s[i].indexOf(">")!=-1){s[i]=s[i].substring(s[i].indexOf(">")+1,s[i].length)}}s=s.join("");s=s.substring(0,chop-1);return s}function showrecentposts(json){j=(showRandomImg)?Math.floor((imgr.length+1)*Math.random()):0;img=new Array();document.write('<ul>');for(var i=0;i<numposts1;i++){var entry=json.feed.entry[i];var posttitle=entry.title.$t;var pcm;var posturl;if(i==json.feed.entry.length)break;for(var k=0;k<entry.link.length;k++){if(entry.link[k].rel=='alternate'){posturl=entry.link[k].href;break}}for(var k=0;k<entry.link.length;k++){if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){pcm=entry.link[k].title.split(" ")[0];break}}if("content"in entry){var postcontent=entry.content.$t}else if("summary"in entry){var postcontent=entry.summary.$t}else var postcontent="";postdate=entry.published.$t;if(j>imgr.length-1)j=0;img[i]=imgr[j];s=postcontent;a=s.indexOf("<img");b=s.indexOf("src=\"",a);c=s.indexOf("\"",b+5);d=s.substr(b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))img[i]=d;var month=[1,2,3,4,5,6,7,8,9,10,11,12];var month2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var day=postdate.split("-")[2].substring(0,2);var m=postdate.split("-")[1];var y=postdate.split("-")[0];for(var u2=0;u2<month.length;u2++){if(parseInt(m)==month[u2]){m=month2[u2];break}}var daystr=day+' '+m+' '+y;var trtd='<li class="car"><div class="thumb"><a href="'+posturl+'"><img style="width:114; height:75px; padding:6px;"  class="alignnone" src="'+img[i]+'"/></a></div></li>';document.write(trtd);j++}document.write('</ul>')}
var relatedTitles = new Array();
var relatedTitlesNum = 0;
var relatedUrls = new Array();
var thumburl = new Array();
function related_results_labels_thumbs(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
relatedTitles[relatedTitlesNum] = entry.title.$t;
try 
{thumburl[relatedTitlesNum]=entry.media$thumbnail.url;}
catch (error){
s=entry.content.$t;a=s.indexOf("<img");b=s.indexOf("src=\"",a);c=s.indexOf("\"",b+5);d=s.substr(b+5,c-b-5);
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))
{thumburl[relatedTitlesNum]=d;} else {if(typeof(defaultnoimage) !== 'undefined') thumburl[relatedTitlesNum]=defaultnoimage; else thumburl[relatedTitlesNum]="http://1.bp.blogspot.com/-xJBXLR81wuI/T_QncMxumoI/AAAAAAAAAbI/QbWAhz1wgW0/s80/no_image.jpg";}
}
if(relatedTitles[relatedTitlesNum].length>35) relatedTitles[relatedTitlesNum]=relatedTitles[relatedTitlesNum].substring(0, 35)+"...";
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
relatedUrls[relatedTitlesNum] = entry.link[k].href;
relatedTitlesNum++;
}
}
}
}
//]]>
</script>
<script src='https://www.google.com/jsapi?key=ABQIAAAAlQIoliUVPjZwD8UDgw_U3RTUhB4JyH-ajz-fA9t4yePPPdGAfRTC_mtuh6Iq1MLEipD0I2rCi30Png' type='text/javascript'/>
<style type='text/css'>
#example1{width: 600px;height: 12px;border: 0px solid #aaa;padding: 0px;font:bold 14px Verdana;text-transform:none;text-align:left;background-color:transparent;}
code{color: #fff;}
#example1 a:link, #example1 a:visited {color:#fff;text-decoration:none;}
#example1 a:hover {color:#fff;text-decoration:none;}
</style>
<script>
  (function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,&#39;script&#39;,&#39;//www.google-analytics.com/analytics.js&#39;,&#39;ga&#39;);

  ga(&#39;create&#39;, &#39;UA-45173552-2&#39;, &#39;tin-tuc-247.blogspot.com&#39;);
  ga(&#39;send&#39;, &#39;pageview&#39;);

</script>
<script type='text/javascript'>
if (window.jstiming) window.jstiming.load.tick(&#39;headEnd&#39;);
</script>
<script src='https://js-videotangcan.googlecode.com/svn/trunk/amazon_scroller.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
function labelthumbs(json){
	document.write('<div class="thumbcont1">');
	for(var i=0;i<numposts;i++){
		var entry=json.feed.entry[i];
		var posttitle=entry.title.$t;
		var posturl;if(i==json.feed.entry.length)break;
	for(var k=0;k<entry.link.length;k++){
		if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){
			var commenttext=entry.link[k].title;var commenturl=entry.link[k].href;
			}
if(entry.link[k].rel=='alternate'){
	posturl=entry.link[k].href;break;}}
	var thumburl;try{thumburl=entry.img+src.url;
}catch(error){s=entry.content.$t;a=s.indexOf("<img");b=s.indexOf("src=\"",a);c=s.indexOf("\"",b+5);d=s.substr(b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))
{thumburl=d;}

else thumburl='http://2.bp.blogspot.com/_IKigl6y9hFA/TMdcT1jzo5I/AAAAAAAAAHA/hAKuT9rJpFU/noimage.jpg';}

if(showpostthumbnails==true)
document.write('<div class="cont"><a href="'+posturl+'" title="'+posttitle+'"><img class="label_thumb" src="'+thumburl+'"/></a><div id="info_cont"><div id="judul"><a href="'+posturl+'"</a>'+posttitle+'</div><div class="detail_button"><a href="'+posturl+'"><img class="san-pham" src="http://1.bp.blogspot.com/-WUw5v9ba6NU/Untt_PBMGqI/AAAAAAAAA8U/N70EDtXTzDQ/s1600/chi-tiet.png" ></a></div>');if("content"in entry){var postcontent=entry.content.$t;}


else
if("summary"in entry){var postcontent=entry.summary.$t;}
else var postcontent="";var re=/<\S[^>]*>/g;postcontent=postcontent.replace(re,"");if(showpostsummary==true){if(postcontent.length<numchars){document.write('');document.write(postcontent);document.write('');}
                                                                                                             else{document.write('<div class="price"><a href=#">');postcontent=postcontent.substring(0,numchars);var quoteEnd=postcontent.lastIndexOf(" ");postcontent=postcontent.substring(0,quoteEnd);document.write(postcontent);document.write('</a></div></div></div>');}}

if(i!=(numposts-1))
document.write('');}

document.write('</div>');}
//]]>
</script>
</head>
